home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Misc / Crossword / Source / BackjumpWord.m < prev    next >
Text File  |  1992-10-11  |  462b  |  23 lines

  1. /*
  2.  
  3. File BackjumpWord.m
  4.  
  5. This type of word is used for a backjumping search.  Each word remembers whether it participates in the current nogood.
  6.  
  7. */
  8.  
  9. #import <appkit/appkit.h>
  10.  
  11. #import "Backjump.h"
  12.  
  13.  
  14. /* ————————————————————————————————————————————————————————————————————————————  */
  15.  
  16.  
  17. @implementation BackjumpWord:PlainWord
  18.  
  19. - (BOOL) mustChange        {        return nogood;                    }
  20. - mark                    {        nogood = YES;    return self;    }
  21. - clear                    {        nogood = NO;    return self;    }
  22.  
  23. @end